import { createRouter, createWebHashHistory } from "vue-router";
import Layout from "layouts/index.vue";

export const routes = [{
  path: "/",
  redirect: "/FaceRegister",
  component: Layout,
  children: [
  {
    path: "/FaceRegister",
    component: () => import("views/FaceRegister.vue"),
    name: "FaceRegister",
  },
  {
    path: "/FaceAttendance",
    component: () => import("views/FaceAttendance.vue"),
    name: "FaceAttendance",
  },
],
},
{
  path: "/Admin",
  component: () => import("views/Admin.vue"),
  name: "Admin",
}, ];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;